<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%@ include file="../inc/header.jsp"%>
<html>
<head>
<title>列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common.js"></script>
<script type="text/javascript">
$(function() {
	var elements = $(".even,.old");
	elements.children().mouseover(function(){
		$(this).parent().addClass('highlight');
	});
	elements.children().mouseout(function(){
		$(this).parent().removeClass('highlight');
	});
});
</script>
<link rel="stylesheet" type="text/css" href="css/page.css" />
</head>
<body>
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="30">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td height="24" bgcolor="#353c44">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td>
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td width="6%" valign="bottom">
													<div align="center">
														<img src="images/tb.gif" width="14" height="14" />
													</div>
												</td>
												<td width="94%" valign="bottom"><span class="STYLE1">用户管理</span></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>

	<table width="100%" border=0 cellpadding="0" cellspacing="1"
		bgcolor="#a8c7ce" style="margin-bottom: 10px;">
		<tr>
			<td width="10%" class="STYLE6">姓名</td>
			<td width="10%" class="STYLE6"><input type="text" name="username"
				class="IPT1" /></td>
			<td width="10%" class="STYLE6">电子邮箱</td>
			<td width="10%" class="STYLE6"><input type="text" name="email"
				class="IPT1" /></td>
			<td class="STYLE6 submit"><input type="button" id="reset"
				value="重置" />&nbsp;&nbsp;<input type="submit" value="查询" />&nbsp;&nbsp;<input type="submit" value="新增" onclick="widonw.location.href='<c:url value='/user/add'/>'"/>
				</td>
		</tr>
	</table>

	<table width="100%" border="0" cellpadding="0" cellspacing="1"
		bgcolor="#a8c7ce">
		<tr>
			<th class="STYLE6">编号</th>
			<th class="STYLE6">用户名</th>
			<th class="STYLE6">电子邮箱</th>
			<th class="STYLE6">密码</th>
			<th class="STYLE6">注册时间</th>
			<th class="STYLE6">操作</th>
		</tr>
		<c:forEach items="${page.items}" var="t" varStatus="status">
			<tr class="${status.index % 2 == 0 ? 'old' : 'even' }">
				<td class="STYLE19">${ t.id }</td>
				<td class="STYLE19">${ t.username }</td>
				<td class="STYLE19">${ t.email }</td>
				<td class="STYLE19">${ t.password }</td>
				<td class="STYLE19">${ t.registerDate }</td>
				<td class="STYLE19"><a
					href="<c:url value='/user/${t.id}/delete'/>" class="remove">删除</a><span style="margin: 0 5px;">|</span><a
					href="<c:url value='/user/${t.id}/update'/>" class="update">修改</a></td>
			</tr>
		</c:forEach>
	</table>
	<common:pageV2 url="/user" optimize="true" />
</body>
</html>
